
/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"25AF6C38-177C-4A88-9954-CA0CAB8B71FB"}
 */
function nueva(event) {
	forms.soluciones_x_uservs_alta.controller.newRecord()
	forms.soluciones_x_uservs_alta.userv_id = globals.gUsrID
	var $win = application.createWindow('SOL_ALTA',JSWindow.MODAL_DIALOG)
	forms.soluciones_x_uservs_alta.controller.show($win)
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"F6E6E48A-820C-419B-9AB6-959AED4C305E"}
 */
function onShow(firstShow, event) {
	databaseManager.setAutoSave(false)
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"3D3442C3-2562-4979-AAF8-48CFFCC088BC"}
 */
function volver(event) {
	forms.main.controller.show()
	databaseManager.setAutoSave(true)
}
